/*
 * @Author: 张笑天
 * @Date: 2018-03-07 17:12:48
 * @Last Modified by: lyuan2018
 * @Last Modified time: 2020-04-26 10:11:13
 */

@prefixCls: wea-email-new;

.spacefull {
  .ant-modal {
    .ant-modal-content {
      .ant-modal-body  {
        padding: 40px 0;
        text-align: center;
      }
    }
  }
}
.ant-modal {
  &-header {
    .ant-modal-title {
      font-size: inherit;
    }
  }
}
.@{prefixCls} {
  width: 100%;
  height: 100%;
  // overflow-y: hidden;

  &-full {
    display: inline-block;
    padding: 0 30px;
    text-align: left;
  }
  
  &>div {
    height: 100%;
    &>.ant-spin-container {
      height: 100%;
    }
  }
  .@{prefixCls}-layout {
    height: 100%;
    transition: padding .1s ease-in-out;
    overflow: hidden;
    &>div {
      float: left;
      height: 100%;
      overflow: hidden;
    }
    &-left {
      width: 100%;
      background-color: #f9f9f9;
      &>.wea-new-scroll {
        .scroller {
          width: 100% !important;
          min-width: 100% !important;
          max-width: 100% !important;
        }
      }
    }
    &-right {
      width: 270px;
      margin-right: -270px;
      border-left: 1px solid #eaeaea;
    }
  }
  .@{prefixCls}-top {
    height: 45px;
    line-height: 45px;
    border-bottom: 1px solid #eaeaea;
    .limited {
      color: #ff5114;
      margin: 0 15px;
    }
    .wea-email-switch {
      float: right;
      margin: 7px 16px 0 0;
    }
    &-account {
      margin-right: 25px;
      float: right;
      &>span {
        cursor: pointer;
        color: #333;
      }
      i {
        margin-left: 6px;
        color: #979797;
      }
    }
  }
  .@{prefixCls}-main {
    height: 100%;
    padding-bottom: 45px;
    &.forbidden-child *{
      pointer-events: none !important;
    }
    &.forbidden-child {
      .@{prefixCls}-main-left {
        position: relative;
      }
    }
    &-left {
      padding: 0 15px 15px 15px;
      &-mask {
        position: absolute;
        background: #000;
        opacity: 0.2;
        color: #fff;
        z-index: 100;
        width: 30%;
        height: 20%;
        // top: 48px;
        // bottom: 60px;
        // left: 15px;
        // right: 15px;
        text-align: center;
      }
      &-ops {
        height: 48px;
        line-height: 48px;
        color: #e3e3e3;
        a {
          cursor: pointer;
          text-decoration: underline;
        }
        &>a {
          color: #4d7ad8;
          margin-right: 16px;
        }
        &-right {
          float: right;
          &>span {
            cursor: pointer;
            .icon-email-Create-a-common-group {
              color: #52b468;
              margin-right: 5px;
              font-size: 10px;
            }
          }
          a {
            color: #999;
          }
        }
        &-contact {
          display: inline-block;
          width: 28px;
          height: 28px;
          line-height: 25px;
          border: 1px solid #d5d5d5;
          border-radius: 50%;
          text-align: center;
          font-size: 16px;
          background-color: #fff;
          color: #b2b2b2;
          margin: 0 3px 0 6px;
          vertical-align: middle;
        }
      }
      &-to {
        .wea-tag-group {
          margin-bottom: 10px;
          background-color: #fff;
          .label-wrapper.wea-fl {
            padding: 0 0 !important;
            position: absolute;
            left: 10px;
            top: 0;
            line-height: 28px;
            color: #333;
            .label-text {
              line-height: 24px;
              & > label {
                vertical-align: middle;
                display: inline-block;
                max-width: 50px;
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
              }
              & > span {
                vertical-align: middle;
                padding-left: 2px;
                height: 100%;
                display: inline-block;
              }
            }
          }
          .tags-wrapper.wea-fl {
            // padding-left: 55px !important;
            padding-left: 72px !important;
            .ant-select-selection__rendered{
              padding-left: 0px;
              .ant-select-search__field {
                border-radius: 0;
              }
            }
          }
          .icons-wrapper.wea-fr {
            overflow: hidden;
            .wea-browser .anticon-search {
              vertical-align: 1px;
            }
            .icon-email-Selection-staff, .wevicon-menu-536-53612 {
              display: inline-block;
              width: 30px;
              margin: 0 -16px 0 8px;
              font-size: 14px;
              cursor: pointer;
            }
            .wevicon-menu-536-53612 {
              font-family: 'wevicon-line' !important;
            }
          }
        }
      }
      &-subject {
        position: relative;
        &>span {
          position: absolute;
          left: 10px;
          top: 0;
          line-height: 30px;
          color: #333;
        }
        .ant-input {
          padding-left: 72px;
        }
      }
      &-secrecy {
        background-color: #fff;
        position: relative;
        margin-top: 10px;
        &-container>.wea-error {
          width: 100%;
        }
        >span {
          padding: 0 10px;
          line-height: 30px;
          color: #333;
        }
        .ant-radio-group {
          display: inline-block;
          line-height: 26px;
        }
      }
      &-upload {
        height: 48px;
        line-height: 48px;
        color: #333;
        &-btn {
          cursor: pointer;
          .icon-email-Enclosure {
            font-size: 14px;
            margin-right: 10px;
            color: #040000;
          }
        }
        .icon-coms-organization-down {
          color: #a3a3a3;
          font-size: 10px;
          margin: 0 10px;
        }
        &-list {
          .clearfloat {
            clear: both;
            content: ".";
            display: block;
            font-size: 0;
            height: 0;
            visibility: hidden;
            _zoom: 1;
          }
          &:after {
            .clearfloat;
          }
          &-item {
            width: 288px;
            height: 68px;
            padding: 6px 6px 6px 72px;
            margin: 0 18px 10px 0;
            float: left;
            &:after {
              .clearfloat;
            }
            &>div {
              float: left;
            }
            &-img {
              width: 56px;
              height: 56px;
              border-radius: 4px;
              float: left;
              margin-left: -66px;
              position: relative;
              &>i {
                font-size: 56px;
                line-height: 1;
                cursor: pointer;
              }
              &-mask {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                line-height: 60px;
                text-align: center;
                background-color: #000;
                opacity: 0;
                border-radius: 4px;
                cursor: pointer;
              }
              &:hover {
                .@{prefixCls}-main-left-upload-list-item-img-mask {
                  opacity: .5;
                  .icon-email-enlarge {
                    color: #fff;
                    font-size: 16px;
                  }
                }
              }
            }
            &-content {
              width: 100%;
              margin-top: 10px;
              &>p {
                cursor: pointer;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                color: #333;
                &:first-child {
                  position: relative;
                }
                &:last-child {
                  color: #888;
                  margin-top: 6px;
                }
              }
            }
            &-content.bigSize {
              margin-top: 0;
              &>p {
                &:last-child {
                  margin-top: 0;
                }
              }
            }
            &-ops {
              margin-right: -102px;
              line-height: 56px;
              display: none;
              &>i {
                color: #666;
                cursor: pointer;
                font-size: 16px;
                margin-left: 15px;
              }
            }
            &-progress {
              position: absolute;
              left: 0;
              bottom: 2px;
              width: 100%;
              padding-left: 72px;
            }
            &:hover {
              padding-right: 102px;
              background-color: #F3F9FF;
              .@{prefixCls}-main-left-upload-list-item-ops {
                display: block;
              }
            }
            &-uploading {
              padding-right: 37px;
              position: relative;
              .@{prefixCls}-main-left-upload-list-item-ops {
                display: block;
              }
              &:hover {
                padding-right: 37px;
                background-color: #F3F9FF;
              }
            }
          }
        }
      }
      &-rich {
        margin-bottom: 10px;
        border: 1px solid #cbcbcb;
        .wea-rich-text {
          .cke .cke_inner,
          &-toolbar-bottom {
            border: none;
          }
          .cke_top {
            padding-bottom: 6px;
          }
          .cke .cke_inner {
            border-bottom: 1px solid #cbcbcb;
          }
        }
        &-icon {
          display: inline-block;
          width: 100%;
          height: 100%;
          &>i {
            font-size: 16px;
            margin-right: 7px;
            vertical-align: middle;
          }
          &:hover {
            color: #32a8ff;
          }
        }
      }
      &-footer {
        line-height: 32px;
        &-more {
          cursor: pointer;
          color: #4d7ad8;
          margin: 0 30px;
          &>i {
            font-size: 10px;
            margin-left: 7px;
            &.icon-coms-right-to-left {
              display: inline-block;
              transform: rotateY(180DEG);
              -ms-transform: rotateY(180DEG);
            }
          }
        }
        &-check {
          margin-right: 20px;
          .wea-checkbox {
            margin-right: 8px;
          }
        }
      }
    }
  }
  &-send {
    &-title {
      font-size: 18px;
      letter-spacing: 2px;
      color: #333;
      position: relative;
      display: inline-block;
      vertical-align: text-top;
      i {
        font-size: 32px;
        margin-right: 16px;
        vertical-align: middle;
      }
      .email-errorMsg {
        left: 50px;
        text-align: left;
        top: 65px;
        line-height: 1.3;
        >span {
          display: block;
        }
        span.errorHint {
          width: 100%;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
      }
      &>span {
        cursor: pointer;
        position: absolute;
        bottom: 20px;
        right: -48px;
        font-size: 12px;
        color: #999;
        letter-spacing: 0;
        line-height: 1;
      }
    }
    &-title.errorMess {
      bottom: 15px;
    }
    &-title.timing {
      font-size: 24px;
      bottom: 35px;
      left: -35px;
      &>span {
        position: absolute;
        top: 80px;
        font-size: 16px;
        line-height: 1.3;
        color: #87d068;
      }
    }
    &-ops {
      font-size: 12px;
      color: #999;
      &>span {
        cursor: pointer;
        margin-right: 30px;
        i {
          font-size: 18px;
          color: #3e3a39;
          margin-right: 8px;
          vertical-align: middle;
        }
      }
    }
    &-errorContent {
      height: 250px;
      overflow-y: auto;
      &-title {
       font-weight: 700;
       line-height: 2;
       border-bottom: 1px solid #ccc;
      }
      .error_content {
        width: 100%;
        display: inline-block;
        margin-bottom: 10px;
        background: linear-gradient(#fff, #efefef, #fff);
        padding: 6px 0;
      }
    }
    &-errorContent::-webkit-scrollbar {
      width: 0;
      height: 0;
    }
  }
  &-main-left-rich-popover {
    .ant-popover-title {
      border: none;
      padding: 0;
      height: auto;
    }
    .ant-popover-inner-content {
      border: none;
      padding: 0;
    }
    &-list {
      padding: 6px 0;
      p {
        padding: 0 12px;
        cursor: pointer;
        line-height: 30px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        &:hover {
          background-color: #eaf8fe;
        }
      }
    }
    &-btn {
      margin: 0 5px;
      text-align: center;
      padding: 6px;
      border-top: 1px dashed #d6d6d6;
      .icon-coms-Add-to-o {
        cursor: pointer;
        color: #45b480;
        font-size: 18px;
      }
    }
  }
  &-contactstree {
    height: 100%;
    &-search {
      color: #333;
      line-height: 38px;
      height: 40px;
      border-bottom: 1px solid #e2e2e2;
      >span {
        margin: 0px 18px;
        width: 84px;
        display: inline-block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        height: 20px;
        line-height: 1.5;
        position: relative;
        top: 4px;
      }
      .ant-input {
        border-right: 0;
      }
      &-add {
        padding: 4px 8px;
        border-radius: 0;
        height: 28px;
        font-size: 12px !important;
      }
    }
    &-trees {
      height: 100%;
      padding-bottom: 41px;
      &>div {
        height: 100%;
        .ant-spin-container {
          height: 100%;
        }
        .ant-tree-child-tree a.ant-tree-node-content-wrapper {
          width: calc(100% - 16px);
          overflow: hidden;
          text-overflow: ellipsis;
        }
        .ant-tree a.ant-tree-node-content-wrapper{
          width: calc(100% - 16px);
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }
    &-tree {
      .ant-tree {
        padding: 0 15px;
        li {
          overflow: hidden;
          text-overflow: ellipsis;
        }
        &>li {
          &>.ant-tree-node-content-wrapper:hover {
            background: transparent;
          }
        }
        li ul {
          padding-left: 0;
        }
        .ant-tree-child-tree-open {
          .@{prefixCls}-contactstree-tree-more-wrap {
            text-align: center;
            .ant-tree-switcher {
              display: none;
            }
            .ant-tree-node-content-wrapper {
              width: 100%;
              padding: 0;
              .@{prefixCls}-contactstree-tree-more {
                width: 100%;
                cursor: pointer;
                text-align: center;
                color: #333;
                .icon-coms-down {
                  font-size: 10px;
                  color: #b2b2b2;
                  margin-left: 6px;
                }
              }
            }
          }
        }
      }
      &:last-child {
        border-top: 1px solid #e2e2e2;
      }
    }
  }

  /* 内部邮件组织树 */
  &-contacts-internalTree {
    height: 100%;
    position: relative;
    >.ant-spin-spinning {
      width: 100%;
      margin: 200px auto;
    }
    &-search {
      height: 44px;
      padding: 5px 10px;
      .wea-input-focus {
        width: 100%;
      }
    }
    &-tree, &-list {
      position: absolute;
      top: 44px;
      bottom: 0;
      width: 100%;
    }
    &-list {
      ul li {
        padding: 13px 0 0 16px;
        &:hover {
          background-color: #ebf9ff;
        }
      }
      &-line {
        cursor: pointer;
        .ant-row {
          border-bottom: 1px solid #e2e2e2;
        }
      }
      &-userinfo {
        padding-left: 12px;
        div {
          line-height: 20px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          span {
            display: inline-block;
            &:nth-child(2) {
              margin-left: 10px;
              min-width: 30%;
              white-space: nowrap;
              text-overflow: ellipsis;
              overflow: hidden;
            }
            &:first-child {
              max-width: 70%;
              white-space: nowrap;
              text-overflow: ellipsis;
              overflow: hidden;
            }
          }
        }
        .dept {
          color: #959595;
        }
      }
    }
  }
  &-popover-group {
    .ant-popover-inner-content {
      padding: 0;
      width: 250px;
    }
    &-content {
      &-all {
        padding: 16px;
        cursor: pointer;
        border-bottom: 1px solid #e8e8e8;
        &:hover {
          background: #eaf8fe;
        }
      }
      &-list {
        &-wrap {
          overflow: hidden;
        }
        &>li {
          padding: 8px 16px;
          cursor: pointer;
          &>p {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
          &:hover {
            background: #eaf8fe;
          }
        }
      }
      &-add {
        padding: 16px;
        cursor: pointer;
        text-align:center;
        border-top: 1px solid #e8e8e8;
        &:hover {
          background: #eaf8fe;
        }
        .icon-coms-Add-to {
          color:#52b468;
          padding-right: 16px;
        }
      }
    }
  }
  &-cgroup {
    &-content {
      padding: 20px 30px;
      padding-left: 0;
      .wea-form-item {
        margin-bottom: 20px;
        .wea-error {
          width: 100%;
        }
        .ant-select-selection__rendered{
          max-width: 290px;
        }
        .wea-checkbox {
          padding-left: 1px;
        }
      }
    }
  }
}